<template>
  <div class="workpage">
    <musiclist :list="singersongs" ></musiclist>
      
  </div>
</template>

<script>
import musiclist from '../components/Small/musicList.vue'
import {get} from '../http/request'
export default {
  components:{
    musiclist
  },
  data(){
    return {
       singersongs:null,
    }
  }
  ,

  mounted(){
     // 获取歌手单曲

          get(`/artists/detail?id=${this.$route.query.id}`).then(res=>{
           console.log(res);
           this.singersongs=res.data.hotSongs
          })
  }

}
</script>

<style>

</style>